package com.qdxwx.models.advert;

import java.io.Serializable;

/**
 * 图片类型
 * @author developer
 */
public class AdvertType implements Serializable{

    private static final long serialVersionUID = 3439499579281741247L;

    /**类型ID*/
	private int typeId;
	/**类型名*/
	private String typeName;

    public AdvertType() {    }

    public int getTypeId() {
        return this.typeId;
    }

    public String getTypeName() {
        return this.typeName;
    }

    public void setTypeId(int typeId) {
        this.typeId = typeId;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof AdvertType)) return false;
        final AdvertType other = (AdvertType) o;
        if (!other.canEqual(this)) return false;
        if (this.getTypeId() != other.getTypeId()) return false;
        final Object this$typeName = this.getTypeName();
        final Object other$typeName = other.getTypeName();
        return this$typeName == null ? other$typeName == null : this$typeName.equals(other$typeName);
    }

    protected boolean canEqual(final Object other) {
        return other instanceof AdvertType;
    }

    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        result = result * PRIME + this.getTypeId();
        final Object $typeName = this.getTypeName();
        result = result * PRIME + ($typeName == null ? 43 : $typeName.hashCode());
        return result;
    }

    @Override
    public String toString() {
        return "AdvertType{" +
                "typeId=" + typeId +
                ", typeName='" + typeName + '\'' +
                '}';
    }
}
